package com.kashow.base.adapter;

import android.view.ViewGroup;

import com.chad.library.adapter.base.BaseItemDraggableAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zhy.autolayout.utils.AutoUtils;

import java.util.List;


public abstract class QuickDragAdapter<T> extends BaseItemDraggableAdapter<T, BaseViewHolder> {
    public QuickDragAdapter(int layoutResId, List<T> data) {
        super(layoutResId, data);
    }

    @Override
    public BaseViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        BaseViewHolder viewHolder =  super.onCreateViewHolder(parent, viewType);
        AutoUtils.autoSize(viewHolder.itemView);
        return viewHolder;
    }
}